﻿#ifndef EQUIPMENTMAINTAINCE_H
#define EQUIPMENTMAINTAINCE_H

#include <QWidget>
#include "Global.h"

namespace Ui {
class EquipmentMaintaince;
}

class EquipmentMaintaince : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    MYScrollLabel FaultInfo;
    explicit EquipmentMaintaince(QWidget *parent = 0);
    QTimer *F5_Timer;
    ~EquipmentMaintaince();
    
private slots:
    void Show_ErrorInfomation();
    void on_buttonLogo_pressed();
    void F5_ErrorInfo_Timer_go(int current);
    void on_buttonLogo_released();
    void onClickedLongCount();
    void on_pushButton_clicked();
    void on_buttonUnlock_clicked();
    void UnlockEnableSlot();

private:
    QString ErrorString[GUN_AMOUNT];
    int Error[GUN_AMOUNT][11];
    void ErrorMeter();
    void ErrorCAN();
    void ErrorCard();
    void ErrorHardware();
    void loadingagainInfo();
    QTimer timerLongPress;//和长按相关的计时器;
    Ui::EquipmentMaintaince *ui;
};

#endif // EQUIPMENTMAINTAINCE_H
